﻿@{
    ViewBag.Title = "Index";
}
@model List<HotelMgr.Models.Order>
<div style="font-size: 18px;font-weight: bolder;">
@Html.ActionLink("新增订单", "Create", "OrderPanelBar")
</div>
@(Html.Telerik().Grid(Model)
.Name("OrderGrid")
.Columns(c =>
             {
                 c.Bound(i => i.OrderID);
                 c.Bound(i => i.Customer.Name);
                 c.Bound(i => i.OrderTime);
                 c.Bound(i => i.CheckInTime);
                 c.Bound(i => i.CheckOutTime);
                 c.Bound(i => i.Status);
                 c.Template(@<text>
                                 @Html.ActionLink("查看", "SaveOrder", "OrderPanelBar", new {id = item.OrderID}, null)
                             </text>).Title("操作");
             })
             .Pageable()
             .Scrollable(s => s.Enabled(true))
             .Footer(true))